# AUTHOR: Samuel Messing <sbm2158@columbia.edu>
GCC = gcc
YACC = yacc
LEX = flex

default: boolean 

stack:
	$(YACC) -o stack_machine.c stack_machine_code.y
	$(GCC) stack_machine.c -o stack_machine.o -ly

boolean:
	$(LEX) assign2p1.l
	$(YACC) assign2p1.y -ly -d
	$(GCC) y.tab.c -o boolean_calculator.o

clean:
	$(RM) *.c
	$(RM) *.o
	$(RM) y.tab.c
